package org.hero.dao;

import org.apache.ibatis.annotations.Param;
import org.hero.entity.CommunityInformation;
import org.hero.entity.PageData;
import org.hero.entity.QunSummary;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by xuzhongyao on 2017/6/16.
 */
@Repository("telecomDAO")
public interface TelecomDAO {

    /**
     * 查询所有小区
     */
    List<CommunityInformation> selectAllXiaoQu();

    /**
     * 批量插入模拟数据
     * @param list
     * @return
     */
    Long instartMoniData(List<QunSummary> list);

    /**
     * 查询top7流量小区
     * @return
     */
    List<PageData> selectTop7XiaoQu(@Param("suggest") String suggest);

    /**
     * 查询故障小区数
     * @param suggest
     * @return
     */
    Long selectFaildXiaoQu(@Param("suggest") String suggest);

    Long selectXiaoQuTotal(@Param("suggest") String suggest);

}
